UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

ErrorReportValve showServerInfo must be set to false.


Overview

Finding ID Version Rule ID IA Controls Severity
V-222975 TCAT-AS-000920 SV-222975r615938_rule Medium
Description
The Error Report Valve is a simple error handler for HTTP status codes that will generate and return HTML error pages. It can also be configured to return pre-defined static HTML pages for specific status codes and/or exception types. Disabling showServerInfo will only return the HTTP status code and remove all CSS from the default non-error related HTTP responses.
STIG Date
Apache Tomcat Application Sever 9 Security Technical Implementation Guide 2021-06-15

Details

Check Text ( C-24647r426369_chk )
As an elevated user on the Tomcat server run the following command:

sudo grep -i ErrorReportValve $CATALINA_BASE/conf/server.xml file.

If the ErrorReportValve element is not defined and showServerInfo set to "false", this is a finding.

EXAMPLE:

...

...
Fix Text (F-24636r426370_fix)
As a privileged user on the Tomcat server:

Edit the $CATALINA_BASE/conf/server.xml file.

Create or modify an ErrorReportValve element nested beneath each element.

EXAMPLE:
unpackWARs="true" autoDeploy="false">
...
showServerInfo="false" />
...


Restart the Tomcat server:
sudo systemctl restart tomcat
sudo systemctl daemon-reload